package com.bugsnag.ohos.reactnative;


import com.bugsnag.ohos.AppWithState;

import java.util.Map;

public class AppSerializer implements MapSerializer<AppWithState> {

    @Override
    public void serialize(Map<String, Object> map, AppWithState app) {
        map.put("type", app.getType());
        map.put("binaryArch", app.getBinaryArch());
        map.put("buildUuid", app.getBuildUuid());
        map.put("codeBundleId", app.getCodeBundleId());
        map.put("duration", app.getDuration());
        map.put("durationInForeground", app.getDurationInForeground());
        map.put("id", app.getId());
        map.put("inForeground", app.getInForeground());
        map.put("isLaunching", app.getLaunching());
        map.put("releaseStage", app.getReleaseStage());
        map.put("version", app.getVersion());
        map.put("versionCode", app.getVersionCode());
    }
}
